package com.bwie.student.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bwie.common.domain.Clazz;
import com.bwie.common.domain.Student;
import com.bwie.common.domain.request.StudentRequest;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author：ShenJiaFeng
 * @Package：com.bwie.student.mapper
 * @Project：zg5_19
 * @name：StudentMapper
 * @Date：2024/2/17 8:57
 */

public interface StudentMapper extends BaseMapper<Student> {
    /**
     * 列表分页
     * @param studentRequest
     * @return
     */
    List<Student> studentList(StudentRequest studentRequest);
    /**
     * 新增学生
     */
    Integer addStudentList(Student student);

    /**
     * 删除
     * @param studentId
     * @return
     */
    Integer delStudent(@Param("studentId") Integer studentId);


    List<Student> studentLists();


    /**
     * 编辑
     * @param studentId
     * @return
     */
    Integer updStudent(Student student);
    /**
     * 回显
     */
    Student findByStudent(@Param("studentId") Integer studentId);

    /**
     * 班级下拉框
     */
    List<Clazz> clazzList();

    /**
     * 删除 学生
     * @param studentId
     * @return
     */
    Integer deleteStudent(@Param("studentId") Integer studentId);

}
